package cn.xinfei.xdecision.common.service.enginex;

import cn.xinfei.xdecision.common.model.datax.datamanage.Field;
import cn.xinfei.xdecision.common.model.enginex.po.Engine;
import cn.xinfei.xdecision.common.model.enginex.vo.EngineCreateReqVo;
import cn.xinfei.xdecision.common.model.enginex.vo.EngineListRespVo;
import cn.xinfei.xdecision.common.model.enginex.vo.EngineUpdateReqVo;
import cn.xinfei.xdecision.common.model.login.SSOUser;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface EngineService {

	void uniqueCheck(EngineCreateReqVo engineCreateReqVo);

	Engine getEngineByCode(String code) ;

	Engine getEngineByName(String name) ;

	boolean createEngine(EngineCreateReqVo engineCreateReqVo);

	boolean updateEngine(SSOUser ssoUser, EngineUpdateReqVo engineUpdateReqVo);

	PageInfo<EngineListRespVo> getEngineList(String searchString, Integer pageNo, Integer pageSize);

	List<EngineListRespVo> getSonEngineList(String searchCon, Long nodeId);
}
